<template>
<div class="main">
  <Row :gutter="16">
    <Col span="6" offset="3" >
      <Card class="card" @click="change('2')">
        <div class="card-con">
          <div class="card_image card_image_1 "></div>
          <div class="card_text">
            在线加密
          </div>
        </div>
      </Card>
    </Col>
    <Col span="6" >
      <Card class="card" @click="change('3')">
        <div class="card-con">
          <div class="card_image card_image_2 "></div>
          <div class="card_text">
            图片攻击
          </div>
        </div>
      </Card>
    </Col>
    <Col span="6" >
      <Card class="card" @click="change('4')">
        <div class="card-con">
          <div class="card_image card_image_3"></div>
          <div class="card_text">
            在线解密
          </div>
        </div>
      </Card>
    </Col>
  </Row>
</div>
</template>

<script>
export default {
  name: "choose",
  methods:{
    change(index){
      this.$emit("change",index)
    }
  }
}
</script>

<style lang="less" scoped>
.main{
  margin-top: 100px;
}
.card {
  height: 15rem;
  //margin-left: 1.5rem;
  border-radius: 10px;
  background-color: #fff;
//transform: scale(1);
//transition: .6s all ease;
}

.card-con {
  height: calc(15rem - 32px);
  width: 100%;
}

.card_image {
  display: block;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  text-align: center;
//background-position: 50%;
//background-size: contain;
  position: relative;
//margin: 0 30px;
  height: 80%;
  width: 100%;

  background-repeat: no-repeat;
  background-size: 100% 100%
}

.card_image_1 {
  background-image: url("../assets/pdftoppt.svg");
}
.card_image_2 {
  background-image: url("../assets/jpg.svg");
}
.card_image_3 {
  background-image: url("../assets/pdf-to-jpg.svg");
}

.card_text {
  height: 20%;
  text-align: center;
  min-height: 1rem;
  font-size: 1.125rem;
  line-height: 1.4;
  margin: 0;
  font-weight: 400;
  letter-spacing: .9px;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}
</style>